﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGame.ServerObjects
{
    static class ServerSingletons
    {
        private static char[] PasswordCharactors = "0123456789ABCDEF".ToCharArray();
        public static Random Rand = new Random();

        public static PlayerManager Players;
        public static DatabaseManager Database;
        public static WorldManager World;
        public static MessagingManager Message;
        public static HookManager Hooks;
        public static ScriptingManager Scripting;

        public static string GetUID(int length)
        {
            string str = "";
            for (int i = 0; i < length; i++)
            {
                str += PasswordCharactors[Rand.Next(PasswordCharactors.Length)];
            }
            return str;
        }
    }
}
